package ru.nosport.matrixaria.modules.user.rexample.server;


import ru.nosport.matrixaria.MatrixariaMain;

import java.util.ResourceBundle;

/**
 * RemoteServerApp Tester.
 *
 * @author Victor Fabrichenko
 * @since <pre>12/24/2008</pre>
 * @version 1.0
 */
public class RemoteServerAppRun {

	public static void main(String[] args) throws Exception {
		String conf = ResourceBundle.getBundle("matrixaria").getString("ppath") + "/src/test/resources/rexample_conf/server/init.xml";

		MatrixariaMain.initialize(conf);
		MatrixariaMain appServer = MatrixariaMain.getInstance();
		appServer.startServer();

	    Thread.sleep(20000);

		appServer.stopServer();
		appServer.shutdownServer();
	}
}
